﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Downloader.UI
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            double start = 12000;
            int spart = Convert.ToInt32(this.textBox1.Text);

            for (int i = 0; i < spart; i++)
            {
                double temp = (start * 0.01) * 12;
                start = start + temp;

                this.textBox2.Text += (i + 1) + "年" + start.ToString()+"  \r\t";
            }

        }
    }
}
